<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

use App\Http\Controllers\UserController;
use App\Http\Controllers\AddController;
use App\Http\Controllers\Admin;

//首页：
Route::any('/',[UserController::class,'index']);

//订单主页面：
Route::any('myorder',[UserController::class,'myorder']);

//我的主页面：
Route::match(['get', 'post'],'index_content',[UserController::class,'index_content']);

//地板打蜡页面：
Route::any('floor',[UserController::class,'floor']);

//保洁服务
Route::any('cleaning_index',[UserController::class,'cleaning_index']);

//地址：
Route::any('address',[AddController::class,'address']);

//添加新地址：
Route::any('address_add',[AddController::class,'address_add']);

//传id添加新地址方法：
Route::any('address_adds',[AddController::class,'address_adds']);

//修改时传id新地址方法：
Route::any('address_ups',[AddController::class,'address_ups']);

//添加新地址功能：
Route::match(['get', 'post'],'address_site',[AddController::class,'address_site']);

//删除新地址：
Route::match(['get', 'post'],'address_delete',[AddController::class,'address_delete']);

//回显修改新地址：
Route::match(['get', 'post'],'address_update',[AddController::class,'address_update']);

//传ID修改新地址：
Route::match(['get', 'post'],'address_uid',[AddController::class,'address_uid']);

//修改地址：
Route::match(['get', 'post'],'address_alter',[AddController::class,'address_alter']);

//搜索小区页面：
Route::any('address_search',[AddController::class,'address_search']);

//搜索小区页面：
Route::any('address_sear',[AddController::class,'address_sear']);

//订单详情：
Route::any('order',[UserController::class,'order']);

//支付成功订单详情：
Route::any('affirm_start',[UserController::class,'affirm_start']);

//订单详情：
Route::any('order_underway',[UserController::class,'order_underway']);

//评价：
Route::any('evaluate',[UserController::class,'evaluate']);

//我的全部订单页面：
Route::any('myorder_none',[UserController::class,'myorder_none']);

//我的消息页面：
Route::any('news',[UserController::class,'news']);


use App\Http\Controllers\MemberController;
//会员中心
Route::any('member_center',[MemberController::class,'member_center']);

//开通会员
Route::any('dredge_member',[MemberController::class,'dredge_member']);
Route::any('dredgeadd',[MemberController::class,'dredgeadd']);

//会员一键叫单
Route::any('indents',[MemberController::class,'indents']);

//会员充值
Route::any('recharge',[MemberController::class,'recharge']);
Route::any('rechargeadd',[MemberController::class,'rechargeadd']);

//充值页面
Route::any('member',[MemberController::class,'member']);
Route::any('memberadd',[MemberController::class,'memberadd']);

//我的钱包页面：
Route::any('money',[MemberController::class,'money']);


//我的钱包页面：
Route::any('my_money',[UserController::class,'my_money']);

//常见问题：
Route::any('problem_mould',[UserController::class,'problem_mould']);


//确认订单：
Route::any('affirm_order',[UserController::class,'affirm_order']);

//分享页面：
Route::any('share',[UserController::class,'share']);

//充值成功页面：
Route::any('success_indent',[UserController::class,'success_indent']);

//付款详情页：
Route::any('payment',[UserController::class,'payment']);

//保洁剂页面：
Route::any('WeiMeng',[UserController::class,'WeiMeng']);

//保洁师详情：
Route::any('waiter_details',[UserController::class,'waiter_details']);



use App\Http\Controllers\VolumeController;
//优惠券页面
Route::any('coupon',[VolumeController::class,'coupon']);

//用户协议
Route::any('protocol',[UserController::class,'protocol']);

//匹配成功页面：
Route::any('matching',[UserController::class,'matching']);


//我的设置：
Route::any('my_zh',[UserController::class,'my_zh']);

//我的个人中心：
Route::match(['get', 'post'],'my_zh_anquan',[UserController::class,'my_zh_anquan']);

//我的个人中心账号显示：
Route::match(['get', 'post'],'/dind_out',[UserController::class,'dind_out']);

//账号添加:
Route::match(['get', 'post'],'/dind_yes',[UserController::class,'dind_yes']);

//前台修改昵称：
Route::match(['get', 'post'],'add_name',[UserController::class,'add_name']);

//前台修改昵称功能：
Route::match(['get', 'post'],'name_update',[UserController::class,'name_update']);

//前台修改密码：
Route::match(['get', 'post'],'add_pwd',[UserController::class,'add_pwd']);

//前台修改密码功能：
Route::match(['get', 'post'],'pwd_update',[UserController::class,'pwd_update']);


use App\Http\Controllers\LoginController;

//前台登录页面：
Route::match(['get', 'post'],'login_index',[LoginController::class,'login_index']);

//前台登录功能：
Route::match(['get', 'post'],'login_check',[LoginController::class,'login_check']);

//退出登录功能：
Route::match(['get', 'post'],'login_out',[LoginController::class,'login_out']);

//前台注册页面：
Route::match(['get', 'post'],'register',[LoginController::class,'register']);

//前台注册功能：
Route::match(['get', 'post'],'register_add',[LoginController::class,'register_add']);

//前台头像页面：
Route::match(['get', 'post'],'img',[LoginController::class,'img']);

//前台头像功能：
Route::match(['get', 'post'],'upload_img',[LoginController::class,'upload_img']);


//Route::match(['get', 'post'],'add',[UserController::class,'add']);
//Route::match(['get', 'post'],'store',[UserController::class,'store']);
//Route::match(['get', 'post'],'exit_a/{id}',[UserController::class,'exit_a']);
//Route::match(['get', 'post'],'update/{id}',[UserController::class,'update']);
//Route::match(['get', 'post'],'delete/{id}',[UserController::class,'delete']);
//Route::resource('text','UserController');
Route::match(['get', 'post'],'admin',[Admin::class,'admin']);
Route::match(['get', 'post'],'welcome',[Admin::class,'welcome']);
Route::match(['get','post'],'admin_list',[Admin::class,'admin_list']);
Route::match(['get','post'],'admin_role',[Admin::class,'admin_role']);
Route::match(['get','post'],'admin_permission',[Admin::class,'admin_permission']);
Route::match(['get','post'],'member_list',[Admin::class,'member_list']);
Route::match(['get','post'],'member_del',[Admin::class,'member_del']);
Route::match(['get','post'],'member_add',[Admin::class],'member_add');
Route::match(['get','post'],'change_password',[Admin::class],'change_password');
